package com.dz.scrm.app.config

/**
 * @Description: 类作用描述
 * @Author: 黄海
 * @CreateDate: 2021-4-22 15:56
 * @UpdateUser: 黄海
 * @UpdateDate: 2021-4-22 15:56
 * @UpdateRemark: 更新说明
 */
const val WHAT_LOGIN = 0
const val WHAT_LOGIN_GAECODE_SUCCESS = 1
const val WHAT_LOGIN_SUCCESS = 2
const val WHAT_CHECK_COMPANY_SUCCESS = 3
const val WHAT_CHECK_VERSION = 4
const val WHAT_REQUEST_PERMISSION_DISAGREE = 5
const val WHAT_REQUEST_PERMISSION_AGREE = 6
const val WHAT_REQUEST_PERMISSION_ALWAYS_DISAGREE = 7
const val WHAT_POST_PHONE_RECORD_SUCCESS = 8
const val WHAT_UPLOAD_FILE_SUCCESS = 9//文件上传成功
const val WHAT_PHONE_NAME = 10//获取用户手机号对应的名称
const val CODE_REQUEST_ERROR = 400//服务器接口异常
const val CODE_LOGIN_TOKEN_ERR = 401//服务器TOKEN异常


const val EVENT_BROADCAST_CALL_FINISH = 20000
const val EVENT_DOWNLOAD_APK = 20001
const val EVENT_TOKEN_EXPIRED = 20002
const val EVENT_BROADCAST_ACTION_SIM_LOADED = 20003

/**
 * 去电
 */
const val BROADCAST_OUTGOING_CALL = "com.miui.enterprise.ACTION_OUTGOING_CALL"

/**
 * 更新界面
 */
const val BROADCAST_UPDATE_UI = "com.miui.enterprise.ui.update"

/**
 * 来电
 */
const val BROADCAST_INCOMING_CALL = "com.miui.enterprise.ACTION_INCOMING_CALL"

/**
 * 断开连接
 */
const val BROADCAST_CALL_DISCONNECTED = "com.miui.enterprise.ACTION_CALL_DISCONNECTED"

/**
 * 拒接
 */
const val BROADCAST_CALL_REJECT = "com.miui.enterprise.ACTION_CALL_REJECT"

/**
 * 建立连接
 */
const val BROADCAST_CALL_CONNECTED = "com.miui.enterprise.ACTION_CALL_CONNECTED"

/**
 * 录音
 */
const val BROADCAST_CALL_RECORD = "com.miui.enterprise.ACTION_CALL_RECORD"

/**
 * SIM卡加载
 */
const val BROADCAST_ACTION_SIM_LOADED = "com.miui.enterprise.ACTION_SIM_LOADED"

/**
 * SIM弹出
 */
const val BROADCAST_ACTION_SIM_ABSENT = "com.miui.enterprise.ACTION_SIM_ABSENT"